import request from "@/utils/request";

// 查询工序列表
export function listBsProcess(query) {
  return request({
    url: "/cm/bsProcess/list",
    method: "get",
    params: query
  });
}

// 查询工序详细
export function getBsProcess(id) {
  return request({
    url: "/cm/bsProcess/" + id,
    method: "get"
  });
}

// 新增工序
export function addBsProcess(data) {
  return request({
    url: "/cm/bsProcess",
    method: "post",
    data: data
  });
}

// 修改工序
export function updateBsProcess(data) {
  return request({
    url: "/cm/bsProcess",
    method: "put",
    data: data
  });
}

// 删除工序
export function delBsProcess(id) {
  return request({
    url: "/cm/bsProcess/" + id,
    method: "delete"
  });
}
